﻿using HalconDotNet;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HTHMachineVision
{
    [Serializable]
    public class GraphicalData
    {
        //直线测量结果
        public HTuple Measure_row_小卡尺 = new HTuple();
        public HTuple Measure_col_小卡尺 = new HTuple();

        //卡尺 半宽
        public double Measure_length1 = 10;
        //卡尺 半高
        public double Measure_length2 = 2;
        //卡尺 间隔
        public double Measure_distance = 5;
        //卡尺 阈值
        public double Measure_threshold = 30;
        //卡尺 过渡方式
        public string Measure_transition = "positive";
        //卡尺 点选择
        public string Measure_select = "first";

        //直线
        //卡尺 直线起点row
        public double Measure_lineSatrtRow = 0;
        //卡尺 直线起点col
        public double Measure_lineSatrtCol = 0;
        //卡尺 直线终点row
        public double Measure_lineEndRow = 1;
        //卡尺 直线终点col
        public double Measure_lineEndCol = 1;

        //矩形
        public double RectangleRow = 0.0;
        public double RectangleColumn = 0.0;
        public double RectanglePhi = 0.0;
        public double RectangleLength1 = 0.0;
        public double RectangleLength2 = 0.0;
    }
}
